#include <iostream>
#include <string>
#include "searcher.hpp"

const std::string input = "data/raw_html/raw.txt";

int main()
{
    // for test
    Searcher *search = new Searcher();
    search->InitSearher(input);

    std::string query;
    std::string json_string;
    while (true)
    {
        std::cout << "Plearse Enter You Search Query: ";
        std::cin >> query;
        search->Search(query, &json_string);
        std::cout << json_string << std::endl;
    }

    // void Search(const std::string& query, std::string* json_string);
    return 0;
}